package cn.oms.manage.pojo.param;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Data
@Accessors
public class CustomerUpdateInfoParam implements Serializable {

    private String user;

    private String phone;

    private String departmentName;

    private Long departmentId;

    private LocalDateTime appointment;

    private String patient_history;

    private String description;

    private String address;

    private String state;

    public void setAppointment(String appointment) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        this.appointment = LocalDateTime.parse(appointment, formatter);
    }
}
